#define _CRT_SECURE_NO_WARNINGS 1
#include"BST.h"

void test1()
{
	vector<int> arr = { 5,3,7,1,4,6,8,0,2,9,10 };
	tom::BSTree<int>bs;
	for (auto it : arr)
	{
		bs.insert(it);
	}
	bs.InOrder();

	bs.erase(8);
	bs.InOrder();
	bs.erase(6);
	bs.InOrder();
	bs.erase(5);
	bs.InOrder();
	bs.erase(10);
	bs.InOrder();
}

//int main()
//{
//	test1();
//	return 0;
//}